#ifndef __SCNS_BMP280_H__
#define __SCNS_BMP280_H__

#include "ScnsConfig.h"

#if defined(SCNS_BMP280_ENABLE)&&SCNS_BMP280_ENABLE==1

#include "ScnsBspBmp280.h"

#include "ScnsYing.h"

typedef enum
{
    SCNS_BMP280_STATUS_OK=SCNS_YING_STATUS_OK,
    SCNS_BMP280_STATUS_BSP_FAILED=SCNS_YING_STATUS_BSP_FAILED,
    SCNS_BMP280_STATUS_FAILED=SCNS_YING_STATUS_FAILED,
    SCNS_BMP280_STATUS_TIME_OUT=SCNS_YING_STATUS_TIME_OUT,
}ScnsBmp280Status;

typedef struct
{
    float temperature;
    float pressure;
    float altitude;
}ScnsBmp280Result;

extern ScnsBmp280Result scnsBmp280Result[SCNS_BMP280_MAX];

extern ScnsBmp280Status scnsBmp280Init(ScnsBmp280Enum bmpN);
extern void scnsBmp280Interrupt(ScnsBmp280Enum bmpN);

#endif
#endif
